package com.tea.funct.domain;

import com.tea.common.annotation.Excel;
import com.tea.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 收益记录对象 tea_income
 *
 * @author Sophia
 * @date 2024-05-25
 */
public class TeaIncome extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 所属会员
     */
    @Excel(name = "所属会员")
    private Long memberId;

    /**
     * 收益金额
     */
    @Excel(name = "收益金额")
    private BigDecimal incomeAmount;

    /**
     * 收益来源
     */
    @Excel(name = "收益来源")
    private String incomeSource;

    /**
     * 收益说明
     */
    @Excel(name = "收益说明")
    private String incomeDesc;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setIncomeAmount(BigDecimal incomeAmount) {
        this.incomeAmount = incomeAmount;
    }

    public BigDecimal getIncomeAmount() {
        return incomeAmount;
    }

    public void setIncomeSource(String incomeSource) {
        this.incomeSource = incomeSource;
    }

    public String getIncomeSource() {
        return incomeSource;
    }

    public void setIncomeDesc(String incomeDesc) {
        this.incomeDesc = incomeDesc;
    }

    public String getIncomeDesc() {
        return incomeDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("memberId", getMemberId())
                .append("incomeAmount", getIncomeAmount())
                .append("incomeSource", getIncomeSource())
                .append("incomeDesc", getIncomeDesc())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
